﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ChangeEmail.aspx.cs" Inherits="gamexpert.member.ChangeEmail" Theme="Black" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"   >
<h2>Change Email</h2>

    <asp:Panel ID="Panel1" runat="server" DefaultButton="btnChangeEmail" >
    <table>
<tr>
    <td>New email address:</td>
    <td><asp:TextBox ID="txtEmail" runat="server" ValidationGroup="a"></asp:TextBox>
        <asp:RegularExpressionValidator
            ID="RegularExpressionValidator1" runat="server" 
            
            
            ErrorMessage="Email address is not valid.Please enter valid email address." ControlToValidate="txtEmail" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
            ValidationGroup="a">*</asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ErrorMessage="Please enter email address." ControlToValidate="txtEmail" 
            ValidationGroup="a">*</asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td colspan="2"><asp:ValidationSummary ID="ValidationSummary1" runat="server" 
            ValidationGroup="a" /></td>
</tr>
<tr>
    <td colspan="2" align="center"><asp:Button ID="btnCancel" runat="server" 
            Text="Cancel" onclick="btnCancel_Click" 
          />
    <asp:Button ID="btnChangeEmail" runat="server" Text="Submit" 
        onclick="btnChangeEmail_Click" ValidationGroup="a" />
    </td>
</tr>
</table>
    </asp:Panel>

</asp:Content>
